package com.spark.lola.support.wms.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;
import java.util.Map;

/**
 * 系统配置
 * @Author: DengYeJun
 * @Date: 2020/4/23 17:43
 */
@ConfigurationProperties(prefix = "wmx.config")
public class WmsProperties {
    /**
     * 物流
     */
    private Config logistics;
    /**
     * 采购
     */
    private Config purchase;
    /**
     * 客服
     */
    private Config service;


    /**
     * 配置属性
     */
    public static class Config{
        /**
         * 部门Id
         */
        private Long deptId;
        /**
         * 职务列表
         */
        private List<Long> dutyId;

        private Map<String,Integer> expires;

        public Long getDeptId() {
            return deptId;
        }

        public void setDeptId(Long deptId) {
            this.deptId = deptId;
        }

        public List<Long> getDutyId() {
            return dutyId;
        }

        public void setDutyId(List<Long> dutyId) {
            this.dutyId = dutyId;
        }

        public Map<String, Integer> getExpires() {
            return expires;
        }

        public void setExpires(Map<String, Integer> expires) {
            this.expires = expires;
        }
    }

    public Config getLogistics() {
        return logistics;
    }

    public void setLogistics(Config logistics) {
        this.logistics = logistics;
    }

    public Config getPurchase() {
        return purchase;
    }

    public void setPurchase(Config purchase) {
        this.purchase = purchase;
    }

    public Config getService() {
        return service;
    }

    public void setService(Config service) {
        this.service = service;
    }

}
